//
//  AtLabel.h
//  HJiOSLib
//
//  Created by Ji Hu on 12-7-30.
//  Copyright (c) 2012年 爱辅导. All rights reserved.
//

#import <UIKit/UIKit.h>

#define AtLabelURLNotification @"atlabelurlclick"
#define AtLabelNotifacationUserInfoKeyContentType @"contenttype"

typedef enum{
    AtLabelContentTypeUrl,
    AtLabelContentTypeAt
}AtLabelContentType;

@interface AtLabelItem : NSObject

@property (nonatomic,retain) NSString *string;
@property (nonatomic,assign) NSRange range;
@property (nonatomic,assign) CGRect frame;
@property (nonatomic,retain) NSMutableArray *frames;

@end

@interface AtLabel : UILabel
{
    NSMutableArray *_labelitems;
//    CGRect clickRect;
    AtLabelItem *clickItem;
    NSMutableAttributedString *attributedText;
}

@property (nonatomic,assign) int row;

@end
